<template>
    <el-aside width="200px">
      <el-menu :default-openeds="['1', '2', '3']">
        <el-submenu index="1">
          <template slot="title"><i class="el-icon-circle-check-outline"></i>清单</template>
          <el-menu-item-group>
            <el-menu-item index="1-1">
              <router-link :to="{ name: 'task-all'} " tag="li">所有</router-link>
            </el-menu-item>
            <el-menu-item index="1-2">
              <router-link :to="{ name: 'task-today'} " tag="li">今日</router-link>                 
            </el-menu-item>
          </el-menu-item-group>
        </el-submenu>
        <el-submenu index="2">
          <template slot="title"><i class="el-icon-menu"></i>收集箱</template>
          <el-menu-item-group>
            <el-menu-item index="2-1">
                <router-link :to="{ name: 'tags'} " tag="li">标签</router-link> 
            </el-menu-item>
            <!-- <el-menu-item index="2-2">
                <router-link :to="{ name: 'inventorys'} " tag="li">清单</router-link> 
            </el-menu-item> -->
          </el-menu-item-group>
        </el-submenu>
        </el-menu>
      </el-aside>
</template>

<script>
    export default {
        name: 'Sidebar'
    }
</script>